<template>
  <!-- <MyButton> 的模板 -->
  <!-- <button>Click Me</button> -->
  <BaseButton v-bind="$attrs" class="btn" :mytitle="mytext"><slot></slot></BaseButton>
  <div>{{ mytext }}</div>
</template>

<script setup>
import { defineProps } from 'vue'
import BaseButton from '@/components/chapter08/base/8.8.3BaseButton.vue'
defineProps({
  mytext: {
    type: String,
    default: ''
  }
})
</script>

<style lang="scss" scoped>
.btn {
  background-color: #42b983;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 8px;
}
</style>
